package datamining.algorithms.aprioriall;


/** 
 * @author xujinghu E-mail: jinghuxu@nudt.edu.cn
 * @date 2012-11-14 涓婂崍12:46:06 
 * @version 
 */
public class Item<ItemType>  implements Comparable<Item<ItemType>>{

	ItemType item;
	
	public Item(ItemType item){
		this.item = item;
	}
	
	@Override
	public int compareTo(Item<ItemType> o) {
		return String.valueOf(item).compareTo(String.valueOf(o.getItemId()));
	}

	public ItemType getItemId() {
		return item;
	}

	public void setItemId(ItemType itemID) {
		item = itemID;
	}

}
